import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
var routestmp='';
if(screen.width<=480){
    routestmp = [
      {
        path: '/',
        name: '首页',
        component: require('../mobilecomponents/Home.vue')
      },{
        path: '/product',
        name: '产品简介',
        component: require('../mobilecomponents/Product.vue')
      },{
        path: '/service',
        name: '技术服务',
        component: require('../mobilecomponents/Service.vue')
      },{
        path: '/information/page/:page',
        name: '智能资讯',
        component: require('../mobilecomponents/Information.vue')
      },{
        path: '/company',
        name: '公司介绍',
        component: require('../mobilecomponents/Company.vue')
      },{
        path: '/infodetail/id/:id',
        name: '资讯详情',
        component: require('../mobilecomponents/InfoDetail.vue')
      },{
        path: '/step',
        name: '健身管理',
        component: require('../mobilecomponents/ManagerStep.vue')
      }
    ]
}else{
  routestmp = [
      {
        path: '/',
        name: '首页',
        component: require('../components/Home.vue')
      },{
        path: '/product',
        name: '产品简介',
        component: require('../components/Product.vue')
      },{
        path: '/service',
        name: '技术服务',
        component: require('../components/Service.vue')
      },{
        path: '/information/page/:page',
        name: '智能资讯',
        component: require('../components/Information.vue')
      },{
        path: '/company',
        name: '公司介绍',
        component: require('../components/Company.vue')
      },{
        path: '/infodetail/id/:id',
        name: '资讯详情',
        component: require('../components/InfoDetail.vue')
      }
    ]
}

export default new Router({
    routes: routestmp
})
